<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="author" content="Aria">
    <meta name="copyright" content="Aria">
    <title>照片墙后台管理系统</title>
    <link href="/photowall/Public/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="/photowall/Public/admin/css/ie.css" rel="stylesheet" type="text/css"/>
    <link href="/photowall/Public/admin/css/cropper.min.css" rel="stylesheet" type="text/css"/>
    <link href="/photowall/Public/admin/css/core.css" rel="stylesheet" type="text/css"/>
    <script src="/photowall/Public/admin/js/jquery-1.11.1.min.js"></script>
    <script src="/photowall/Public/admin/js/bootstrap.min.js"></script>
    <script src="/photowall/Public/admin/js/cropper.min.js"></script>
    <script src="/photowall/Public/admin/js/ajaxfileupload.js"></script>
    <script src="/photowall/Public/admin/js/Sortable.min.js"></script>
    <script src="/photowall/Public/admin/js/jquery.binding.js"></script>
    <script src="/photowall/Public/admin/js/manage.js"></script>
</head>
<body class="manage">
<div class="manage-wrap">
    <!-- Nav tabs -->
    <ul class="nav nav-tabs">
        <a class="log-out">注销登录</a>
        <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="<?php if(($vo['nav_id']) == $_GET['nav_id']): ?>active<?php endif; ?>"><a href="/photowall/Admin/<?php echo ($vo["href"]); ?>/nav_id/<?php echo ($vo["nav_id"]); ?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
<!-- Tab panes -->
<div class="tab-content">


    <div class="tab-pane active" id="profile" >


        <div class="page-header"><h1>员工资料</h1></div>
        <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" <?php if(empty($staff["staff_id"])): ?>action="/photowall/Admin/Staff/add"<?php else: ?>action="/photowall/Admin/Staff/edit"<?php endif; ?> >
        <?php if(!empty($staff["staff_id"])): ?><input type="hidden" name="staff_id" value="<?php echo ($staff["staff_id"]); ?>"><?php endif; ?>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-3"><input class="form-control username" id="inputEmail3"name="name" value="<?php echo ($staff["name"]); ?>"></div>

            <label for="inputPassword3" class="col-sm-2 control-label">英文名</label>
            <div class="col-sm-3"><input class="form-control engname" id="inputPassword3"name="ename" value="<?php echo ($staff["ename"]); ?>"></div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">优先级</label>
                <div class="col-sm-3"><input class="form-control username" id="inputEmail3"name="order_id" value="<?php echo ($staff["order_id"]); ?>"></div>
            </div>
            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">职位(行一)</label>
                <div class="col-sm-3"><input class="form-control post_1" id="inputPassword3" name="position_main" value="<?php echo ($staff["position_main"]); ?>"></div>
                <label for="inputPassword3" class="col-sm-2 control-label">职位(行二,可选)</label>
                <div class="col-sm-3"><input class="form-control post_2" id="inputPassword3" name="position_second" value="<?php echo ($staff["position_second"]); ?>"></div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">区域</label>
                <div class="col-sm-3"><input class="form-control area" id="inputPassword3" name="area" value="<?php echo ($staff["area"]); ?>"> </div>
                <label for="inputPassword3" class="col-sm-2 control-label">职责范围</label>
                <div class="col-sm-3"><input class="form-control post_3" id="inputPassword3" name="duty" value="<?php echo ($staff["duty"]); ?>"></div>
            </div>

            <div class="form-group">
                <div class="img-container col-sm-6 edit">
                    <img src="<?php echo ($staff["photo"]); ?>"/></div>
                <div class="img-preview col-sm-3"></div>
                <div class="col-sm-3">
                    <lable class="upd"><input id="fileToUpload" type="file" size="45" name="fileToUpload" class="input" style="">选择图片</lable>
                    <button type="button" id="buttonUpload" class="btn btn-primary">上传</button>
                    <button type="button" class="btn btn-warning reset" style="display:block;margin:20px auto 0;">重置</button>
                </div>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">生日</label>
                <div class="col-sm-3"><input class="form-control birthday" id="inputPassword3" name="birthday" value="<?php echo ($staff["birthday"]); ?>"></div>
                <label for="inputPassword3" class="col-sm-2 control-label">身高(M)</label>
                <div class="col-sm-3"><input class="form-control height" id="inputPassword3" name="stature" value="<?php echo ($staff["stature"]); ?>"></div>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">体重(KG)</label>
                <div class="col-sm-3"><input class="form-control bw" id="inputPassword3"name="weight" value="<?php echo ($staff["weight"]); ?>"></div>
                <label for="inputPassword3" class="col-sm-2 control-label">学校</label>
                <div class="col-sm-3"><input class="form-control school" id="inputPassword3" name="school" value="<?php echo ($staff["school"]); ?>"></div>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">QQ</label>
                <div class="col-sm-3"><input class="form-control qq" id="inputPassword3"name="qq" value="<?php echo ($staff["qq"]); ?>"></div>
                <label for="inputPassword3" class="col-sm-2 control-label">微信</label>
                <div class="col-sm-3"><input class="form-control wechat" id="inputPassword3"name="wechat" value="<?php echo ($staff["wechat"]); ?>"></div>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">电话</label>
                <div class="col-sm-3"><input class="form-control phone" id="inputPassword3" name="phone"value="<?php echo ($staff["phone"]); ?>"></div>
                <label for="inputPassword3" class="col-sm-2 control-label">星座</label>
                <div class="col-sm-3"><input class="form-control constellation" id="inputPassword3"name="constellation" value="<?php echo ($staff["constellation"]); ?>"></div>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">座右铭</label>
                <textarea class="form-control motto col-sm-6" rows="3" name="motto" value="<?php echo ($staff["motto"]); ?>"><?php echo ($staff["motto"]); ?></textarea>
            </div>

            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">性格</label>
                <textarea class="form-control character col-sm-6" rows="3" name="character" value="<?php echo ($staff["character"]); ?>"><?php echo ($staff["character"]); ?></textarea>
            </div>



            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">兴趣爱好</label>
                <textarea class="form-control interest col-sm-6" rows="3"name="hobby"value="<?php echo ($staff["hobby"]); ?>"><?php echo ($staff["hobby"]); ?></textarea>
            </div>

            <button type="submit" class="btn btn-primary user-add">提交</button>
            </form>



        </div>



    </div>
</div>

</body>
</html>